﻿using ProtoBuf;

namespace Ha666.Common
{
    [ProtoContract]
    public class MongoAddress
    {
        #region Model
        private string _address;
        private int _port;
        /// <summary>
        /// 地址
        /// </summary>
        [ProtoMember(1)]
        public string Address
        {
            set { _address = value; }
            get { return _address; }
        }
        /// <summary>
        /// 端口
        /// </summary>
        [ProtoMember(2)]
        public int Port
        {
            set { _port = value; }
            get { return _port; }
        }
        #endregion Model
    }
}